package com.movie.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.movie.bean.Recharge;
import com.movie.bean.vo.RechargeQueryVO;
import com.movie.common.HttpResult;
import com.movie.service.RechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liu Jiaquan
 * @Description
 * @date 2024/8/5 19:39
 */
@RestController
public class RechargeController {

    @Autowired
    private RechargeService rechargeService;

    @PostMapping("/rechargePage")
    public HttpResult<Page<Recharge>> rechargePage(@RequestBody RechargeQueryVO rechargeQueryVO){
        return HttpResult.success(rechargeService.rechargePage(rechargeQueryVO));
    }

}
